﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Log.Controller;
using System.Net;
using System.Threading;
using Util;
using WinUtil;

namespace TestWin
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            try
            {
                //string abc = "asdsfb";
                //abc = abc.Substring(-1, 2);
                //abc += "fghjkl";

                //EventArgs ee = null;
                //abc = ee.ToString();
            }
            catch (Exception ex)
            {
                LogController.WriteLog(System.Runtime.InteropServices.Marshal.GetExceptionCode(), ex, Funcs.GetIpClient());
            }
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            CallingThread.CreateThread(this.GetType().FullName, "CreateThread1");
        }

        public static void CreateThread1()
        {
            Thread.Sleep(5000);
        }

        public static void CreateThread2()
        {
            Thread.Sleep(6000);
        }
    }
}
